//
//  CityModel.m
//  团购
//
//  Created by 樊荣海 on 15/1/21.
//  Copyright (c) 2015年 樊荣海. All rights reserved.
//

#import "CityModel.h"

@implementation CityModel

-  (void)setDistricts:(NSArray *)districts {
    NSMutableArray *array = [NSMutableArray array];
    
    for (NSDictionary *dict in districts) {
        
        DistrictModel *district = [[DistrictModel alloc] init];
        
        [district setValuesForKeysWithDictionary:dict];
        
        [array addObject:district];
    }
    
    _districts = array;
}

@end
